function CheckCheckboxes(){

	
	// TIPO INTERVENTO COLONNA
	if(document.forms[0].cat1.checked) {		
		
		document.getElementById("attivo").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat1").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat1_1").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat1_2").style.backgroundColor = "#b5ef65";
		//document.getElementById("righe_cat1_3").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat1_4").style.backgroundColor = "#b5ef65";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
		
		
		
	}else if(!document.forms[0].cat1.checked) { 
	
		document.getElementById("attivo").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat1").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat1_1").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat1_2").style.backgroundColor = "#E8EDFF";
	//	document.getElementById("righe_cat1_3").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat1_4").style.backgroundColor = "#E8EDFF";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
		
		
		
	}	
	
	// CONDIZIONI COLONNA
	if(document.forms[0].cat2.checked) {		
		
		document.getElementById("prima").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat2").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat2_1").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat2_2").style.backgroundColor = "#b5ef65";
		//document.getElementById("righe_cat2_3").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat2_4").style.backgroundColor = "#b5ef65";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
					
		
	}else if(!document.forms[0].cat2.checked) { 
	
		document.getElementById("prima").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat2").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat2_1").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat2_2").style.backgroundColor = "#E8EDFF";
	//	document.getElementById("righe_cat2_3").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat2_4").style.backgroundColor = "#E8EDFF";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
	
	}	
	
	
	// DATA VISITA COLONNA
	if(document.forms[0].cat3.checked) {		
		
		document.getElementById("prima").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat3").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat3_1").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat3_2").style.backgroundColor = "#b5ef65";
	//	document.getElementById("righe_cat3_3").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat3_4").style.backgroundColor = "#b5ef65";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
					
		
	}else if(!document.forms[0].cat3.checked) { 
	
		document.getElementById("prima").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat3").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat3_1").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat3_2").style.backgroundColor = "#E8EDFF";
	//	document.getElementById("righe_cat3_3").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat3_4").style.backgroundColor = "#E8EDFF";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
	
	}	
	
	// ORA COLONNA
	if(document.forms[0].cat4.checked) {		
		
		document.getElementById("prima").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat4").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat4_1").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat4_2").style.backgroundColor = "#b5ef65";
	//	document.getElementById("righe_cat4_3").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat4_4").style.backgroundColor = "#b5ef65";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
					
		
	}else if(!document.forms[0].cat4.checked) { 
	
		document.getElementById("prima").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat4").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat4_1").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat4_2").style.backgroundColor = "#E8EDFF";
	//	document.getElementById("righe_cat4_3").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat4_4").style.backgroundColor = "#E8EDFF";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
	
	}	
	
	// PREZZO VISITA COLONNA
	if(document.forms[0].cat5.checked) {		
		
		document.getElementById("prima").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat5").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat5_1").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat5_2").style.backgroundColor = "#b5ef65";
	//	document.getElementById("righe_cat5_3").style.backgroundColor = "#b5ef65";
		document.getElementById("righe_cat5_4").style.backgroundColor = "#b5ef65";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
					
		
	}else if(!document.forms[0].cat5.checked) { 
	
		document.getElementById("prima").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat5").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat5_1").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat5_2").style.backgroundColor = "#E8EDFF";
	//	document.getElementById("righe_cat5_3").style.backgroundColor = "#E8EDFF";
		document.getElementById("righe_cat5_4").style.backgroundColor = "#E8EDFF";
		document.getElementById("button").style.backgroundColor = "#FFFFFF";
	
	}	
	
	
	
	
}